package com.example.r2dbcdemo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.time.Instant;

@Data
//@Table("t_book")
public class TBookAuthor {

    @Id
    private Long id;
    private String title;
    private Long authorId;
    private Instant publishTime; //响应式中日期的映射用 Instant 或者 LocalXxx


    private TAuthor author; //每本书有唯一作者；
}
